﻿#if UNITY_EDITOR
using UnityEditor;

namespace UFrame
{
    public class BuildGameTools
    {
        [MenuItem("Plateface/BuildGame/build Game", false, 1)]
        public static void BuildGame()
        {
            BuildPlayerOptions b = new BuildPlayerOptions();
            //string[] scenes = new string[1] 
            //{
            //    "Assets/Scenes/panziMain.unity"
            //};
            //b.scenes = scenes;
            //EditorApplication.p
            //b.locationPathName = locationPathName;
            //b.options = BuildOptions.None;
            //b.target = buildTarget;
            //b.targetGroup = BuildTargetGroup.;
            BuildPipeline.BuildPlayer(b);
        }
    }
}
#endif